package com.crk.yiyuanguahao.service;

import com.crk.yiyuanguahao.entity.RoleAuth;
import com.crk.yiyuanguahao.util.ResponseResult;
import org.springframework.stereotype.Service;

/**
 * @Author: 程荣凯
 * @Date: 2019/3/5 9:53
 */
@Service
public interface RoleAuthService {
    /**
     * 保存角色用户关联
     * @param roleAuth
     * @return
     */
   ResponseResult saveRoleAuth(RoleAuth roleAuth);

    /**
     * 根据用户ID查询角色列表
     * @param userId
     * @return
     */
   ResponseResult queryRoleListTreeByUser(int userId);

}
